package cn;

public class Divisor {
	int rection(int n) {
		int sum = 0;
		for (int i = 1; i <= n; i++) {
			if (n % i == 0) {
				sum += i;
			}
		}
		return sum;
	}

	public static void main(String[] args) {
		Divisor d = new Divisor();
		int a = d.rection(6);
		System.out.println("输出sum=" +  a);
	}
}